package com.kkb.shopcenter.server.mappers;


import com.kkb.shopcenter.common.dto.ChartDataDto;
import com.kkb.shopcenter.common.dto.OrderCountData;
import com.kkb.shopcenter.common.pojo.SubOrderInfo;
import com.kkb.shopcenter.server.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SubOrderInfoMapper extends BaseMapper<SubOrderInfo> {

    Integer countBetweenTime(@Param("shopId") Long shopId,
                             @Param("start")int start,@Param("end")int end);

    Double sumTotalPrice(@Param("shopId") Long shopId);

    List<OrderCountData> selectOrderStatus(@Param("shopId") Long shopId);

    List<ChartDataDto> charList(@Param("shopId") Long shopId,
                                @Param("start")int start,@Param("end")int end);

    List<ChartDataDto> charListT(@Param("shopId") Long shopId,
                                @Param("start")int start,@Param("end")int end);

}
